﻿namespace Calculator
{
    

    public class MathExpression
    {
        public string Expression { get; protected set; }

        protected ISymbolHandler symbolHandler;
        protected IOperatorHandler operatorHandler;

        public MathExpression(MathExpressionParams mathExpressionParams)
        {
            symbolHandler = mathExpressionParams.SymbolHandlerParam;
            operatorHandler = mathExpressionParams.OperatorHandlerParam;
            Expression = mathExpressionParams.ExpressionParam;
        }

        public MathExpression(string expressionParam, ISymbolHandler symbolHandlerParam, IOperatorHandler operatorHandlerParam)
        {
            Expression = expressionParam;
            symbolHandler = symbolHandlerParam;
            operatorHandler = operatorHandlerParam;
        }
    }
}